Link Code with Work System Entities
Overview
This article explains how to link code from one system to another using SyncNow. Currently, SyncNow supports linking code from Azure DevOps (Git or TFVC) to Jira or to another Azure DevOps instance or collection.
💡 Usage Examples
- Link code from Azure DevOps Git or TFVC to Jira Issues.
- Link code from one Azure DevOps instance or collection to another.
To link between systems, include a comment in your commit or pull request message such as:
This is my commit message with entity references #ClickSoft-CLS-123 and #ClickSoft-12345.
Issue IDs can be referenced as #{short DevOps Gate SyncNow system Name}-{Entity ID} or simply #{Entity ID}.
📝 Step-by-Step Instructions
1️⃣ Create a DevOps Gate Process
-
Navigate to the DevOps Gate page.
-
Press the Add DevOps Gate Process button.
2️⃣ Configure System Security
-
In a new browser tab, go to the Systems page.
-
Press the Edit button for each system included in the Sync Process.
-
Select your preferred Webhook Security options.
-
Save the system configuration.
3️⃣ Configure the DevOps Gate Process
- Enter a name for the process.
- Select the systems from which to receive webhooks and the target system where entities will be updated.
Currently, only Azure DevOps Server and Azure DevOps Service support the Link to Code action.
- Add unique system prefixes. These prefixes help SyncNow recognize the source system and determine which entity should be updated.
- Add unique system prefixes for the target system to identify where to add hyperlinks to commits or pull requests.
4️⃣ Subscribe to Code Events
-
For Azure DevOps systems, select the sub-projects to subscribe to code events:
Code PushedCode Checked InPull Request CreatedPull Request UpdatedPull Request Merge Attempted
-
Select the Link to Code action.
-
Press the Save button.
- Enter the password for the user account configured in step 5.
A new DevOps Gate Process has now been created.
🧩 Example Workflow
-
Create Entities in the Target System
Create the entities in the target system to which you want to add a remote link. -
Reference Entities in Commit or PR Messages
In the source system, within the subscribed project, create a commit or pull request with entity keys in the message. -
Verify Remote Link Added
Confirm that a remote link has been added to the referenced entities in the target system.
Tip:
Use clear and consistent entity references in your commit and PR messages to ensure accurate linking between code and work system entities.